package com.ray.activiti.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.ray.activiti.service.ExtendActTasklogService;
import com.ray.activiti.table.entity.ExtendActTasklog;
import com.ray.activiti.table.mapper.ExtendActTasklogMapper;



@Service
public class ExtendActTasklogServiceImpl implements ExtendActTasklogService {
	@Autowired
	private ExtendActTasklogMapper extendActTasklogMapper;
	
	@Override
	@Transactional(propagation=Propagation.NOT_SUPPORTED)
	public ExtendActTasklog queryObject(String id){
		return extendActTasklogMapper.queryObject(id);
	}
	
	@Override
	@Transactional(propagation=Propagation.NOT_SUPPORTED)
	public List<ExtendActTasklog> queryList(Map<String, Object> map){
		return extendActTasklogMapper.queryList(map);
	}
	
	@Override
	@Transactional(propagation=Propagation.NOT_SUPPORTED)
	public int queryTotal(Map<String, Object> map){
		return extendActTasklogMapper.queryTotal(map);
	}
	
	@Override
	@Transactional(propagation=Propagation.REQUIRED,rollbackFor=Exception.class)
	public void save(ExtendActTasklog extendActTasklog){
		extendActTasklogMapper.save(extendActTasklog);
	}
	
	@Override
	@Transactional(propagation=Propagation.REQUIRED,rollbackFor=Exception.class)
	public void update(ExtendActTasklog extendActTasklog){
		extendActTasklogMapper.update(extendActTasklog);
	}
	
	@Override
	@Transactional(propagation=Propagation.REQUIRED,rollbackFor=Exception.class)
	public void delete(String id){
		extendActTasklogMapper.delete(id);
	}
	
	@Override
	@Transactional(propagation=Propagation.REQUIRED,rollbackFor=Exception.class)
	public void deleteBatch(String[] ids){
		extendActTasklogMapper.deleteBatch(ids);
	}

	@Override
	@Transactional(propagation=Propagation.REQUIRED,rollbackFor=Exception.class)
	public int updateByTaskId(ExtendActTasklog extendActTasklog) {
		return extendActTasklogMapper.updateByTaskId(extendActTasklog);
	}

	@Override
	@Transactional(propagation=Propagation.REQUIRED,rollbackFor=Exception.class)
	public int updateByTaskIdOpinion(ExtendActTasklog extendActTasklog) {
		return extendActTasklogMapper.updateByTaskIdOpinion(extendActTasklog);
	}
}
